package com.alibaba.org.mapper;

import com.alibaba.basic.dto.ShopDto;
import com.alibaba.basic.mapper.BaseMapper;
import com.alibaba.org.domain.Shop;

import java.util.List;

public interface ShopMapper extends BaseMapper<Shop> {

    /**
     * 店铺入驻：校验当前入住信息是否入驻过
     * @param shop
     * @return
     */
    Shop findByNameAndAddress(Shop shop);

    /**
     * 获取每一个店铺的状态
     * @return
     */
    List<ShopDto> getShopState();

}
